
html {
    /*始终显示滚动条*/
    overflow-y: scroll;
}

body {
    margin: 0;
    background-color: #f4f6f9;
    /*禁止水平滚动*/
    overflow-x: hidden;
}


/*为全站超链接设置样式*/
a:link, a:visited {
    text-decoration: none;
    color: #0a53be;
}

a:hover, a:active {
    text-decoration: none;
    color: #e56244;
}

.header {
    height: 80px;
    padding: 0;
}

.menu {
    border-top: solid 1px #aaaaaa;
    padding-top: 10px;
    background-color: #fff;
    height: 75px;
    box-shadow: 0 2px 8px #f2f3f5; /* 微妙阴影 */
}

.menu a, .menu li {
    color: #909090;
    padding-right: 5px;
}

/*搜索框*/
.menu .search-container {
    position: relative;
    width: 230px;
}

.menu .search-box {
    margin-right: 40px;
}

.menu .search-button {
    position: absolute;
    right: 10px; /* 调整按钮位置 */
    top: 50%;
    transform: translateY(-50%);
    background-color: #f2f3f5;
    color: #1a1d20;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.menu .search-button:hover {
    background-color: #0056b3;
}
.menu .dropdown:hover .dropdown-menu {
  display: block;
}

/*轮播图样式*/
.banner {
    padding: 20px 0;
}

/*网页中部栅格样式*/
.article-panel {
    border: 1px solid #e0e0e0; /* 更细的边框 */
    border-radius: 8px; /* 圆角 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* 微妙阴影 */
    background: #fff; /* 纯白背景 */
    transition: box-shadow 0.3s; /* 悬停效果 */
    margin-top: 30px;
    padding: 30px 20px;
    word-break: break-all;
    word-wrap: break-word;
}

.article-panel:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/*文章列表样式*/
.article-list {
    text-align: justify;
    padding-bottom: 10px;
    max-width: 100%;
}

.article-list .postSeparator {
    border-bottom: 1px solid #eef2f8;
    text-align: justify;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.article-list .postTitle {
    font-size: 19px;
    height: 25px;
}

.article-list .postintro {
    font-size: 16px;
    margin: 10px 0;
    word-break: break-all;
    word-wrap: break-word;
    height: auto;
    line-height: 25px;
    color: #596172;
    overflow: hidden;

}

.article-list .postintro a:link, .article-list .postintro a:visited {
    color: #596172;
}

.article-list .post-otherinfo {
    height: 20px;
}

.article-list .post-bottom-info {
    padding-left: 15px;
}

/*右侧边推荐栏等栏目样式*/
.postSide {
    padding: 0 0 20px 15px;
    /*border: solid 1px #cccccc;*/
}

.postSide .side {
    /*margin-bottom: 15px;*/
    padding: 10px 10px;
}

.postSide .side .tip {
    height: 42px;
    color: #596172;
    line-height: 42px;
    font-size: 18px;
    border-bottom: solid 2px orangered;
    padding-left: 5px;
}

.postSide .side ul {
    list-style: none;
    padding: 0 6px;
}

.postSide .side ul li {
    line-height: 35px;
    padding: 7px 0;
    border-top: 1px solid #eef2f8;
    font-size: 15px;
    text-align: justify;
    border-bottom: 1px solid #eef2f8;
    white-space: nowrap; /* 防止文本换行 */
    overflow-x: hidden; /* 隐藏溢出的内容 */
    text-overflow: ellipsis; /* 显示省略号 */
}


/*.postSide .search-bar {*/
/*    margin: 0px;*/
/*    border: solid 1px #cccccc;*/
/*    padding: 10px 0;*/
/*    background-color: #563d7c;*/
/*}*/


/*article.html的文章样式*/
.page {
    justify-content: center;
    align-items: center;
    padding-bottom: 50px;
}

/*底部样式*/
.footer {
    margin-top: 50px;
    padding-top: 10px;
    padding-bottom: 15px;
    background-color: whitesmoke;
    color: #ddd;
}

.footer .page-bottom-info {
    text-align: center;
    line-height: 40px;
}

/*回到顶部的按钮样式*/
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 20px;
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    transition: opacity 0.3s ease;
}

.back-to-top:hover {
    background-color: #0056b3;
}


/* 文章评论 */
.post-comment {
    background: #FFFFFF;
    color: #333333;
    font: 18px -apple-system;
    margin: 20px 0 80px 0;
    padding: 20px 50px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    box-shadow: 0 2px 2px #aaa;
}

.post-comment div {
    /*margin: 5px 0;*/
}

.post-comment .reddit {
    display: flex;
    justify-content: center;
}

.post-comment .reddit .img-container {
    position: relative;
    display: block;
    width: 888px;
    height: auto;
    min-height: 180px;
    background-size: 180px 180px; /* 保持背景图片高度 */
    background-position: 50%;
    background-repeat: no-repeat;
    background-image: url('../img/comment-background.avis');
}

.post-comment .comment-zone {
    position: relative; /* 改为相对定位 */
    top: auto;
    left: 40px;
    z-index: 1;
    width: 800px;

    /*padding: 20px;*/
    margin-bottom: 30px;

}

.post-comment .form-floating textarea {
    height: 280px;
    background-color: #f2f3f5;
    position: relative;
    padding: 8px 12px;
    color: #515767;
    outline: none;
    box-sizing: border-box;
    line-height: 28px;
    font-size: 16px;
    overflow: auto;
}


/*.post-comment {*/
/*    border: solid 1px #cccccc;*/
/*    margin: 10px 0px;*/
/*    background-color: whitesmoke;*/
/*    padding: 20px 0px 10px 0px;*/
/*    line-height: 35px;*/
/*}*/
.post-comment .list {
    margin: 0px 0px 0px 0px;
    border-top: solid 1px #dddddd;
    padding-top: 10px;
    width: 800px;
}

.post-comment .list .icon {
    margin: 0px;
    padding-top: 5px;
    text-align: right;
}

.post-comment .list .icon img {
    margin-right: 30px;
}

.post-comment .list .comment {
    padding: 0px 0px;
}

.post-comment .list .comment .commenter {
    font-size: 14px;
    color: #666666;
    padding-left: 0;
}

.post-comment .list .comment .content {
    font-size: 16px;
    padding-left: 0px;
    /*word-break: break-word;*/
    text-align: justify;
}

.post-comment .list .comment .reply {
    text-align: right;
    line-height: 20px;
}

.post-comment .list .comment .reply label {
    font-weight: normal;
    color: #337AB7;
    cursor: pointer;
    font-size: 16px;
}
